package personal.util;

/**
 *
 * @author LocNguyen
 */
public class StringUtil {
    
    /**
     * Check if a string is empty or not
     * A string is empty if it is null or
     * the lenght of string is zero
     * 
     * @param str string to check
     * @return true if str is empty, false if not
     */
    public static boolean isEmpty(String str) {
        return ((str == null) && (str.length() == 0));
    }
}
